<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h1>Login</h1>
        <h:form>
            <h:panelGrid columns="3">
                <h:outputLabel for="name" value="Nombre"></h:outputLabel>
                <h:inputText id="name" label="Nombre" value="${beanLogin.name}">
                    <f:validateBean></f:validateBean>
                </h:inputText>
                <h:message id="nameError" for="name" errorClass="error"></h:message>

                <h:outputLabel for="password" value="Clave"></h:outputLabel>
                <h:inputSecret id="password" label="Clave" value="#{beanLogin.password}">
                    <f:validateBean></f:validateBean>
                </h:inputSecret>
                <h:message id="passwordError" for="password" errorClass="error"></h:message>

                <h:commandButton action="#{beanLogin.validateUser}" value="Acceder"></h:commandButton>
            </h:panelGrid>
            
        </h:form>
        <!--<h:form><h:commandLink value="Nuevo Usuario" action="index.html"></h:commandLink></h:form>-->
    </h:body>
</html>